package com.yidu.news.utils;

import java.io.Serializable;

public class BasePojo implements Serializable {
    private Integer page ;
    private Integer limit ;

    private Integer startRows ;

    public Integer getStartRows() {
        if(page!=null) {
            startRows = (page - 1) * limit;
        }
        return startRows;
    }

    public void setStartRows(Integer startRows) {
        this.startRows = startRows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
